package com.project.util;
import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnels;

import java.nio.charset.Charset;

public class StringUtil {
    public final  static int CACHE_TIME_MAX=20;
    public  final  static int CACHE_TIME_MIN=10;

    public  static BloomFilter bloomFilter;
    static {

        //布隆过滤器,实现项目中可以在用户添加数据或修改数据的时候放入数据
        bloomFilter = BloomFilter.create(Funnels.stringFunnel(Charset.defaultCharset()), 1000000, 0.001);

    }




}
